package com.djj.nanny.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.djj.nanny.entity.ServiceFavorite;

public interface ServiceFavoriteService {
    void addFavorite(ServiceFavorite favorite);

    void cancelFavorite(Long userId, Long serviceId);

    ServiceFavorite getFavoriteById(Long id);

    Page<ServiceFavorite> getFavoritesByPage(Long userId, Long serviceId, Integer pageNum, Integer pageSize);

    boolean isFavorite(Long userId, Long serviceId);

} 